﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// 購物車中的每筆項目定義
/// </summary>
public class CartItem
{
  /// <summary>
  /// 項目編號
  /// </summary>
  public string ItemId { get; set; }
  /// <summary>
  /// SMAS_CODE(後台商品唯一ID)
  /// </summary>
  public string SMAS_CODE { get; set; }
  /// <summary>
  /// 產品編號(WS專用參數)
  /// </summary>
  public string B2C_CODE { get; set; }
  /// <summary>
  /// 商品圖片路徑
  /// </summary>
  public string ImagePath { get; set; }
  /// <summary>
  /// 商品名稱(對應B2C_CODE_NAME)
  /// </summary>
  public string ProductName { get; set; }
  /// <summary>
  /// 商品特價(對應ACT_PRICE)
  /// </summary>
  public int Price { get; set; }
  /// <summary>
  /// 訂購數量(非庫存)
  /// </summary>
  public int Quantity { get; set; }
  /// <summary>
  /// 商品規格(對應Prd_Type)
  /// </summary>
  public string Spec { get; set; }
  /// <summary>
  /// 商品狀態(目前缺SPEC)
  /// </summary>
  public string Status { get; set; }
  /// <summary>
  /// 館別(對應Output_Prod_Cat_ID)
  /// </summary>
  public string ProdCatID { get; set; }
  /// <summary>
  /// 館別(對應Prod_Cat_ID)
  /// </summary>
  public string Prod_Cat_ID { get; set; }
  /// <summary>
  /// 商品最後更新時間
  /// </summary>
  public DateTime LastUpdated { get; set; }

  /// <summary>
  /// 哩上加哩之哩程數
  /// </summary>
  public string Mileage{ get; set; }
  /// <summary>
  /// 哩上加哩之現金
  /// </summary>
  public int Cash{ get; set; }
  /// <summary>
  /// 商品購買時的選擇類型：
  /// 1:現金
  /// 2:自有里程+現金
  /// 3:受贈里程+現金
  /// 4:紅配綠的紅標
  /// 5:紅配綠的綠標
  /// </summary>
  public string Type{ get; set; }
  /// <summary>
  /// 商品庫存量
  /// </summary>
  public string StorageQty { get; set; }
  /// <summary>
  /// 優惠資訊(目前只套用在整點和限時特價)
  /// </summary>
  public string Promotion { get; set; }
  /// <summary>
  /// 抓取ValidateOrderInfo後所得商品狀態
  /// </summary>
  public string Prod_Status { get; set; }
  /// <summary>
  /// 抓取ValidateOrderInfo後所得商品敘述
  /// </summary>
  public string Prod_Memo { get; set; }

}

